<?php

/**
 * Partnerproducts form.
 *
 * @package    billingSystem
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class PartnerproductsForm extends BasePartnerproductsForm
{
  public function configure()
  {
      //$this->widgetSchema['pid'] = new sfWidgetFormInputHidden();
      //$this->widgetSchema['proid'] = new sfWidgetFormInputText();
      $this->widgetSchema['proid'] = new sfWidgetFormDoctrineChoice(array('model'=>'products','add_empty'=>true));//Choice(array('choices' => array($this->getObject()->get('proid'))));
      $this->validatorSchema['proid'] = new sfValidatorDoctrineChoice(array('model'=>'products'));
      
      unset(
           $this['created_at'],$this['updated_at']
              );
      $this->validatorSchema['pid'] = new sfValidatorString(array('required' => false));
  }
}
